package java19_3_22_reflect.rawtype;

/**
 * 此时T和E就表示两个泛型参数
 * @author yuisama
 * @date 2022/03/22 19:41
 **/
public class MyClass<T> {
    private T t1;

    public T getT1() {
        return t1;
    }

    public void setT1(T t1) {
        this.t1 = t1;
    }

    public <T> void fun(T t) {

    }

    public static void main(String[] args) {
        MyClass<String> myClass = new MyClass<>();
        myClass.setT1("123");
        myClass.fun(123);
    }
}